Skip to content

docs: the GoogleTest adapter under an mcpp before 2026.11.8.1 - #2

Merged
Sunrisepeak merged 1 commit into
mainfrom
docs-gtest-older-mcpp
Nov 8, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
docs-gtest-older-mcpp

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

An mcpp before 2026.11.8.1 links compat.gtest's gtest_main.cc beside the adapter's main when compat.gtest is reached only through the adapter; naming compat.gtest as a dev-dependency too keeps it out (mcpp 2026.11.8.1 fixes the link). The entry is named by the adapter's package, mcpplibs.mtest.gtest/main.

Co-authored-by: speak-agent 248744407+speak-agent@users.noreply.github.com

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
@Sunrisepeak
Sunrisepeak merged commit ee0a724 into main Nov 8, 2026
8 checks passed
Sunrisepeak pushed a commit that referenced this pull request Nov 30, 2026
…s variables stay out of what a case starts (#32)

* doctest: distinct identifiers, xfail and xpass, timeout, the place of an exception (#29)

Of two cases with one name the later is <suite>/<name>#2. should_fail and expected_failures(n) are listed expect: fail and end xfail or xpass; may_fail stays pass. doctest::timeout is listed as the case's timeout. An exception or a crash fails at the case's place. The conformance suite holds an implementation below level 3 that expresses an expected failure to its xfail. 0.11.4.

* doctest, gtest: the protocol's variables stay out of what a case starts (P2.2, #29)

The adapters read the handshake once, then remove its variables from the C library's environment before any case runs, so a test program a case starts does not append to its parent's report. mcpplibs.os states no change to a program's own environment (mcpplibs/os#29), so the adapters call the host's C library. The doctest adapter's own test checks a case and a program it starts under mcpp test; CI runs it.

---------

Co-authored-by: ZheFeng7110 <194236111+ZheFeng7110@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant